import request from '/@/utils/request';

/**
 *
 * 企业api接口集合
 */
export function tenantApi() {
    return {
        getTableData: (data: object) => {
            return request({
                url: 'sysTenant/page',
                method: 'post',
                data: data,
            });
        },
        addRecord: (tenant: object) => {
            return request({
                url: 'sysTenant/add',
                method: 'post',
                data: tenant,
            });
        },
        updateRecord: (tenant: object) => {
            return request({
                url: 'sysTenant/update',
                method: 'post',
                data: tenant,
            });
        },
        delRecord: (tenant: object) => {
            return request({
                url: 'sysTenant/delete',
                method: 'post',
                data: tenant,
            });
        },
        exportRecord: (data: object) => {
            return request({
                url: 'sysTenant/export',
                method: 'download',
                data: data
            });
        }
    };
}
